/**
 * <p>Title: MainManager.java</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2009</p>
 * <p>Company: xunjie</p>
 * @author shenhao
 * @date 2010-3-9
 * @version 1.0
 */
package cn.haona.game.simb.object.god;

/**
 * <p>
 * Title: MainManager
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Company: xunjie
 * </p>
 * 
 * @author shenhao
 * @date 2010-3-9
 */
public class MainManager implements Manager {
	private static MainManager me;

	private CacheManager cacheManager;
	private PersistenceManager persistenceManager;
	private EntityManager entityManager;

	/**
	 * 
	 */
	private MainManager() {
		// TODO Auto-generated constructor stub
	}

	/*
	 * (non-Javadoc) <p>Title: getInstance</p> <p>Description: 得到实例</p>
	 * 
	 * @return
	 */
	public static MainManager getInstance() {
		if (me == null) {
			me = new MainManager();
		}

		return me;
	}

	/*
	 * (non-Javadoc) <p>Title: initMe</p> <p>Description: </p>
	 * 
	 * @see cn.haona.game.simb.god.Manager#initMe()
	 */
	public void initMe() {
		// TODO Auto-generated method stub
	}


	public CacheManager getCacheManager() {
		return cacheManager;
	}

	public void setCacheManager(CacheManager cacheManager) {
		this.cacheManager = cacheManager;
	}

	public PersistenceManager getPersistenceManager() {
		return persistenceManager;
	}

	public void setPersistenceManager(PersistenceManager persistenceManager) {
		this.persistenceManager = persistenceManager;
	}

	public EntityManager getEntityManager() {
		return entityManager;
	}

	public void setEntityManager(EntityManager entityManager) {
		this.entityManager = entityManager;
	}

	/*
	 * (non-Javadoc) <p>Title: getID</p> <p>Description: </p>
	 * 
	 * @return
	 * 
	 * @see cn.haona.game.simb.god.Manager#getID()
	 */
	public String getID() {
		// TODO Auto-generated method stub
		return null;
	}

	/*
	 * (non-Javadoc) <p>Title: destoryMe</p> <p>Description: </p>
	 * 
	 * @see cn.haona.game.simb.god.Manager#destoryMe()
	 */
	public void destoryMe() {
		// TODO Auto-generated method stub

	}

}
